<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
 <script>
 var a = 1
    alert(a++);
var b = 1
    alert(++b);
 </script>   
</body>
</html>